import numpy as np
import torch
import random
import math
import torch.nn.functional as F
import matplotlib.pyplot as plt
import re
import torch.nn as nn
import copy
import warnings
import copy

print(np.unique([1, 2, 3, 4, 5, 3, 2], return_index=True))
# 从输出结果来看就是去重并返回没有重复的索引
